//
//  timer.h
//  Sinnca Engine v2
//
//  Created by Ryan Oldis on 10/14/11.
//  Copyright 2011 Sinnca Studios. All rights reserved.
//

#include "global.h"

#ifndef Sinnca_Engine_v2_timer_h
#define Sinnca_Engine_v2_timer_h

class timer
{
	int startTicks, pauseTicks;
	
	bool started, paused;
	
public:
	timer();
	
	void start();
	void pause();
	void resume();
	
	int getTicks();
	
};

#define globalTime (globalTimer::Instance())
class globalTimer: public timer
{
	float fps;
	
public:
	
	globalTimer();
	std::vector<timer> timerManager;
	
	static globalTimer* Instance();
	
protected:
	
	static globalTimer* _instance;
	
	
};

#endif
